package com.yanqu.road.entity.activity.springunionbanquet;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_c_spring_union_banquet_join")
public class SpringUnionBanquetJoinData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "参加id，活动中唯一")
    private long joinId;

    @FieldTypeAnnotation(desc = "参加人")
    private long userId;

    @FieldTypeAnnotation(desc = "宴请id")
    private long banquetId;

    @FieldTypeAnnotation(desc = "参加时间-毫秒")
    private long joinTime;

    @FieldTypeAnnotation(desc = "奖励领取")
    private String reward;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getJoinId() {
        return joinId;
    }

    public void setJoinId(long joinId) {
        if(this.joinId != joinId) {
            this.joinId = joinId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getBanquetId() {
        return banquetId;
    }

    public void setBanquetId(long banquetId) {
        if(this.banquetId != banquetId) {
            this.banquetId = banquetId;
            setUpdateOption();
        }
    }

    public long getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(long joinTime) {
        if(this.joinTime != joinTime) {
            this.joinTime = joinTime;
            setUpdateOption();
        }
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
        setUpdateOption();
    }
}
